package com.leyou.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/*读取配置属性的类*/
@Data
@Component
@ConfigurationProperties("ly.oss")
public class OSSProperties {
    private String accessKeyId;   //
    private String accessKeySecret;   //
    private String bucket;
    private String host;     //访问oss的域名，很重要bucket + endpoint
    private String endpoint;   //服务的端点
    private String dir;      //保存到bucket的某个子目录
    private long expireTime;  //过期时间，单位是S
    private long maxFileSize;   //文件大小限制，这里是5M
}